function getUniqueCode(){
	var date = new Date();	
	return date.getTime();
}

function showConfirmWindow(title, message, height, width, scrollVar) {
	var clientHeight = document.body.clientHeight;
	var clientWidth = document.body.clientWidth;
	
	//change header title
	$('confirm-header').innerHTML = '<span>'+title+'</span>';
	
	//change message body
	$('message').innerHTML = message;
	
	//set window widths
	if(scrollVar){
		$('message').setStyle({
	 	 	height: (height-54),
  			width: (width-12),
  			overflow:scroll
		});

	}else{
		$('message').setStyle({
	 	 	height: height,
  			width: width
		});
	}

	$('confirm-container').setStyle({
			position: 'absolute',
			zIndex: 1002,
	 	 	height: height,
  			width: width,
			left: ((clientWidth/2)-(width/2)).floor(),
			top: ((clientHeight/2)-(height/2)).floor()
	});
	
	//show modal
	$('confirm-container').removeClassName('confirm-container-hidden');
	$('confirm-container').addClassName('simplemodal-container');
}

function updateConfirmWindow(message){
	//change message body
	$('message').innerHTML = message;
}

function closeConfirmWindow(){
	//hide modal
	$('confirm-container').removeClassName('simplemodal-container');
	$('confirm-container').addClassName('confirm-container-hidden');
}